<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{

    protected function _initNavigationXml()
    {
        $this->bootstrap('layout');
        $layout = $this->getResource('layout');
        $view = $layout->getView();
        $config = new Zend_Config_Xml(APPLICATION_PATH.'/configs/navigation.xml');
        $navigation = new Zend_Navigation($config);
        $view->navigation($navigation);
    }

    protected function _initAutoload()
    {
        /*
         * If you don't register namespace
         * You will get error :
         * Fatal error: Class 'Example_Controller_Plugin_Param' not found in
         * ...\library\Zend\Application\Resource\Frontcontroller.php on line 92
         *
         */
        $autoloader = Zend_Loader_Autoloader::getInstance();
        $autoloader->registerNamespace('Cloudy_');
        $autoloader->suppressNotFoundWarnings(true);
        /*
         * also you will get Exception :
         * No entry is registered for key 'Zend_Request_Example'
         * called in helper ParamHelper.php
         *
         */
    }
}

